home *** CD-ROM | disk | FTP | other *** search
- property pMyImage, pWidth, pHeight, x1, y1, pMyRect, pMyState, pVel
- global utilButtons, gTotalMenuButtons
-
- on new me
- pWidth = member("utilNav").width
- pHeight = member("utilNav").height
- pMyImage = image(pWidth, pHeight, 24)
- pMyImage = member("utilNav").image.duplicate()
- x1 = 190
- y1 = -105
- pMyRect = rect(x1, y1, x1 + pWidth, y1 + pHeight)
- pMyState = #off
- pVel = 0
- return me
- end
-
- on moveNav me
- case pMyState of
- #on:
- y1 = y1 + pVel
- if pVel > 0 then
- pVel = pVel - 1
- else
- y1 = 0
- repeat with i = 1 to gTotalMenuButtons
- if count(utilButtons) < gTotalMenuButtons then
- createUtilButtons()
- end if
- end repeat
- end if
- pMyRect = rect(x1, y1, x1 + pWidth, y1 + pHeight)
- #off:
- y1 = y1 - pVel
- if pVel > 0 then
- pVel = pVel - 1
- else
- y1 = -105
- end if
- pMyRect = rect(x1, y1, x1 + pWidth, y1 + pHeight)
- end case
- end
-